﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage_Home.master" AutoEventWireup="true" CodeFile="Baiviet.aspx.cs" Inherits="Baiviet" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<%@ Register TagPrefix="uc" TagName="Hieusinh" Src="Baiviet/Hieusinh.ascx"%>
<%@ Register TagPrefix="uc" TagName="Tiencan" Src="Baiviet/Tiencan.ascx"%>
<%@ Register TagPrefix="uc" TagName="Trieuchung" Src="Baiviet/Trieuchung.ascx"%>
<%@ Register TagPrefix="uc" TagName="Xetnghiem" Src="Baiviet/Xetnghiem.ascx"%>
<%@ Register TagPrefix="uc" TagName="Canlamsang" Src="Baiviet/Canlamsang.ascx"%>
<%@ Register TagPrefix="uc" TagName="Thongtinkhac" Src="Baiviet/Thongtinkhac.ascx"%>
<%@ Register TagPrefix="uc" TagName="Ketluan" Src="Baiviet/Ketluan.ascx"%>
<%@ Register TagPrefix="uc" TagName="ListOnline" Src="Baiviet/ListOnline.ascx"%>
<%@ Register TagPrefix="uc" TagName="Traodoi" Src="Baiviet/Traodoi.ascx"%>
<%@ Register TagPrefix="uc" TagName="ListGroup" Src="~/Baiviet/ListGroup.ascx"%>
<%@ Register TagPrefix="uc" TagName="Chacnangcoban" Src="~/Baiviet/Chucnangcoban.ascx"%>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>



<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<script type="text/javascript">
function confirmBlock() {
    if(confirm('Đóng bài viết này lại và dừng thảo luận?')) {
        // you clicked the OK button.
        // you can allow the form to post the data.
        return true;
    }
    else {
        // you clicked the Cancel button.
        // you can disallow the form submission.
        return false;
    }
}

function confirmDelete() {
    if(confirm('Chắc chắn xóa bài viết này?')) {
        // you clicked the OK button.
        // you can allow the form to post the data.
        return true;
    }
    else {
        // you clicked the Cancel button.
        // you can disallow the form submission.
        return false;
    }
}

function confirmOpenBlock() {
    if(confirm('Chắc chắn mở khóa bài viết này?')) {
        // you clicked the OK button.
        // you can allow the form to post the data.
        return true;
    }
    else {
        // you clicked the Cancel button.
        // you can disallow the form submission.
        return false;
    }
}
</script>

    <telerik:RadScriptManager ID="ScriptManager1" runat="server" 
    EnableTheming="True">
    
</telerik:RadScriptManager>
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
</telerik:RadStyleSheetManager>

            <div id="blog_left">
                <div class="blog_box">
                    <div class="blog_bg_top"></div>
                    <div class="blog_bg">
                        <div class="blog_grad_bot">
                            <div class="blog_grad_top">
                                <div>
                                    <div class="news_top">
                                        <div class="news_top_right">
                                            <div class="news_title">
                                            <div>
                                                <asp:Label ID="lb_time" runat="server" ForeColor="Black" Text=""></asp:Label></div>
                                            <div>
                                                <asp:Label ID="Label1" ForeColor="Black" Font-Size="Large" runat="server" Text=""></asp:Label>
                                                
                                            </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="news_text">
                                        <p>
                                            <asp:Label ID="lb_noidung" runat="server"></asp:Label> 
                                        </p>
                                        &nbsp;<br />
                                        
                                        <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="2">
                                            <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
                                                <HeaderTemplate>
<p style="width:auto">Sinh hiệu</p>
                                            </HeaderTemplate>
                                                
<ContentTemplate>
<uc:Hieusinh id="Hieusinh1" runat="server"/>
                                            </ContentTemplate>
                                            
</asp:TabPanel>
                                            <asp:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2">
                                                 <HeaderTemplate>
<p style="width:auto">Tiền căn</p>
                                            </HeaderTemplate>
                                                 
<ContentTemplate>
<uc:Tiencan id="Tiencan1" runat="server"/>
                                            </ContentTemplate>
                                            
</asp:TabPanel>
                                            <asp:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3">
                                                 <HeaderTemplate>
<p style="width:auto">Triệu chứng</p>
                                            </HeaderTemplate>
                                                 
<ContentTemplate>
<uc:Trieuchung id="Trieuchung1" runat="server"/>
                                            </ContentTemplate>
                                            
</asp:TabPanel>
                                            <asp:TabPanel ID="TabPanel4" runat="server" HeaderText="TabPanel3">
                                                 <HeaderTemplate>
<p style="width:auto">Xét nghiệm</p>
                                            </HeaderTemplate>
                                                 
<ContentTemplate>
<uc:Xetnghiem id="Xetnghiem1" runat="server"/>
                                            </ContentTemplate>
                                            
</asp:TabPanel>
                                            <asp:TabPanel ID="TabPanel5" runat="server" HeaderText="TabPanel3">
                                                 <HeaderTemplate>
<p style="width:auto">Cận lâm sàng</p>
                                            </HeaderTemplate>
                                                 
<ContentTemplate>
<uc:Canlamsang id="Canlamsang1" runat="server"/>
                                            </ContentTemplate>
                                            
</asp:TabPanel>
                                            <asp:TabPanel ID="TabPanel6" runat="server" HeaderText="TabPanel3">
                                                 <HeaderTemplate>
<p style="width:auto">Thông tin khác</p>
                                            </HeaderTemplate>
                                                 
<ContentTemplate>
<uc:Thongtinkhac id="Thongtinkhac1" runat="server"/>
                                            </ContentTemplate>
                                            
</asp:TabPanel>
                                        </asp:TabContainer>
                                        <div style="clear: both"></div>
                                        <br />
                                        <uc:Ketluan id="Ketluan1" runat="server"/>
                                        <div style="clear: both"></div>
                                        <div class="tegs_hr"></div>
                                        <br />
                                        
                                        <div class="aboutus_bg">
                                        <fieldset>
                                            <legend>Trao đổi thông tin</legend>
                                            <div class="about_col_ketluan">
               
                                         <div class="scrollgrid_chat">
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                        <ContentTemplate>
                                            <asp:Timer ID="Timer2" runat="server" Interval="5000">
                                            </asp:Timer>
                                        <uc:Traodoi id="Traodoi1" runat="server"/>
                                        </ContentTemplate>
                                        </asp:UpdatePanel>
                                        </div>
                                        </div>
        </fieldset>
     <div style="clear: both">
     </div>
</div>
                                        <br />
                                        <div style="clear: both" id="div_editor" >
                                                    <telerik:RadEditor ID="rad_editor_chat" runat="server" Width="644px">
                                                    <CssFiles>
                                                        <telerik:EditorCssFile Value="Style_Telerik.css"/>
                                                    </CssFiles>
                                                    <Content></Content>
                                                    </telerik:RadEditor>
                                                    </div>
                                        
                                            <p id="p_editor" runat="server">
                                                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" 
                                                    HorizontalAlign="NotSet" LoadingPanelID="RadAjaxLoadingPanel1">
                                                    <br />
                                                    <div style="text-align:center">
                                                    
                                                        <asp:Button ID="btn_editor" runat="server" Text="Gửi" Width="100px" CssClass="class_button_end_comment"
                                                            onclick="btn_editor_Click" Font-Bold="True" Font-Size="Large" />
                                                        <asp:Button ID="btn_refesh" runat="server" Text="Xóa" Width="100px" CssClass="class_button_end_comment"
                                                            onclick="btn_refesh_Click" Font-Bold="True" Font-Size="Large"/>
                                                    </div>
                                                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
                                                    </telerik:RadAjaxLoadingPanel>
                                                </telerik:RadAjaxPanel>
                                                
                                            </p>  
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="blog_bg_bot"></div>
                </div>
            </div>

            <div id="blog_right">
                <div class="blog_right_top"></div>
                <div class="blog_right_bg">
                    <div class="blog_text_num_title">
                    <big class="text_num">
                    <asp:Image ID="Image_thanhvienvietbai" runat="server" Height="101px" 
                                   Width="78px" />
                                   </big></div>
                    <div style="width:200px;height:100px;padding-left:5px">
                    <asp:Label ID="Label_tenttvietbai" runat="server" Text="Label" Font-Bold="True" 
                            Font-Size="X-Large" ForeColor="#000066"></asp:Label>
                    <br />
                    <asp:Label ID="Label_chucvuttvietbai" runat="server" Text="Label" Font-Size="Small" 
                            ForeColor="#0066FF"></asp:Label>
                    </div>      
                </div>
                <div class="blog_right_bot"></div>
                
                <p id="p_right_chat" runat="server">
                
                <hr />
                <br />
                <asp:LinkButton ID="LinkButton1" runat="server" CssClass="link_button_delete" 
                OnClientClick="javascript:return confirmDelete();" runat="server"
                ToolTip="Click vào để xóa bài viết này" Width="282" Height="45" 
                    onclick="LinkButton1_Click"></asp:LinkButton>
                <br />
                <br />
                <asp:LinkButton ID="LinkButton2"
                    OnClientClick="javascript:return confirmBlock();" runat="server" 
                    CssClass="link_button_block" ToolTip="Click vào để khóa bài viết này" 
                    Width="282" Height="45" onclick="LinkButton2_Click"></asp:LinkButton>
                <br />
                <br />
                <asp:LinkButton ID="LinkButton3"
                    OnClientClick="javascript:return confirmOpenBlock();" runat="server" 
                    CssClass="link_button_unblock" ToolTip="Click vào để mở khóa bài viết này" 
                    Width="282" Height="45" onclick="LinkButton3_Click1"></asp:LinkButton>
                <br />
                <br />
                <hr />
                <br />
                
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate> 
                    <asp:Accordion ID="Accordion1" runat="server"
                           SelectedIndex="0"
                           HeaderCssClass="accordionHeader" 
                           ContentCssClass="accordionContent" 
                           FadeTransitions="true" 
                           FramesPerSecond="40" 
                           TransitionDuration="200"
                           AutoSize="None">
                <Panes>
        <asp:AccordionPane ID="AccordionPane1" runat="server">
            <Header><h6>Thành viên Online</h6></Header>
            <Content>
                <div class="blog_right_top"></div>
                <div class="blog_right_bg">
                    <!--<asp:Timer ID="Timer1" runat="server" Interval="5000">
                    </asp:Timer>-->
                    <uc:ListOnline ID="ListOnline1" runat="server"/> 
                </div>
                <div class="blog_right_bot"></div>
            </Content>
        </asp:AccordionPane> 
        <asp:AccordionPane ID="AccordionPane2" runat="server">
            <Header><h6>Group chat</h6></Header>
            <Content>
                <div class="blog_right_top"></div>
                <div class="blog_right_bg">
                    <uc:ListGroup ID="ListGroup1" runat="server" />  
                </div>
                <div class="blog_right_bot"></div>   
            </Content>
        </asp:AccordionPane> 
        <asp:AccordionPane ID="AccordionPane3" runat="server">
            <Header><h6>Chức năng cơ bản</h6></Header>
            <Content>
                <div class="blog_right_top"></div>
                <div class="blog_right_bg">
                    <uc:Chacnangcoban ID="Chucnangcoban1" runat="server"/>        
                </div>
                <div class="blog_right_bot"></div>   
                 
            </Content>
        </asp:AccordionPane>
    </Panes>
                </asp:Accordion>
                </ContentTemplate>
                </asp:UpdatePanel>
                </p>
            </div>
            <div class="con_white_hr"></div>
</asp:Content>